package com.qf.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsCategory;
import com.qf.pojo.DtsComment;
import com.qf.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StatMapper {

    List<CategorySellAmts> findCategorySell();

    List<DayStatis> findOrderAmts();

    List<DayStatis> findUserOrderCnt();

    List<UserStatVo> queryStatUser();

    List<StatOrderVo> queryStatOrder();

    List<Map<String,Object>> queryStatGoods();

    Map<String, Object> queryPidAndId(Integer id);

    long queryOrderCountById(Integer id);

    IPage<DtsComment> selectCommentPage(IPage<DtsComment> iPage,@Param("ew") QueryWrapper<DtsComment> qw);
}
